package com.jdd.enterprise.exception;
import com.jdd.enterprise.util.BasicRespCode;
public class FailException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private String msg;
    private String code;
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public FailException(String msg) {
        super();
        this.code = BasicRespCode.FAIL.code;
        this.msg = msg;
    }
    public FailException(BasicRespCode code) {
        this.msg = code.desc;
        this.code = code.code;
    }
}
